build: Install Valgrind suppressions files
authorPhilip Chimento <philip.chimento@gmail.com>
Sun, 23 Feb 2020 23:00:37 +0000 (15:00 -0800)
committerPhilip Chimento <philip.chimento@gmail.com>
Sun, 23 Feb 2020 23:00:37 +0000 (15:00 -0800)
This is so that other programs linking to GTK can use GTK's suppressions
files when performing their own Valgrind analysis.

Closes: #138
meson.build

index 22804b519670c9ab743149963f5ce4133c5c1f40..2ba1516d7e9b137507f8375276525322b5b00744 100644 (file)
@@ -794,6 +794,13 @@ meson.add_install_script('build-aux/meson/post-install.py',
                          gtk_libdir,
                          gtk_datadir)
 
+if host_machine.system() != 'windows'
+  # Install Valgrind suppression files (except on Windows,
+  # as Valgrind is currently not supported on Windows)
+  install_data('gtk.supp', 'gtk64.supp',
+    install_dir : join_paths(gtk_datadir, 'gtk-4.0', 'valgrind'))
+endif
+
 summary = [
   '',
   '------',